import pandas as pd
import matplotlib.pyplot as plt
from matplotlib.pyplot import MultipleLocator

data = pd.read_csv("output/wallet.csv")
date = data["trade_date"]
equity = data["equity"]
# stocks_value = data["stocks_value"]
# cash=data["cash"]

# l1=plt.plot(date,cash,'g-',label='cash')
# l2=plt.plot(date,stocks_value,'r-',label='stocks_value')

l3=plt.plot(date,equity,'b-',label='equity')
plt.title('The equity curve')

# 设置颜色为白色，隐藏横坐标标签
plt.xticks(color='w')
plt.xlabel('date')
plt.ylabel('RMB')
plt.legend()
plt.show()
